<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div class="myzbj_top"> 
<div class="head-task">
	<div class="hd-con clearfix">
		<h1><a href="<s:url action="index.action" namespace="/channel"></s:url>" class="logo"></a></h1>
		<div class="user-ed">
			<div class="user-msg">
				<div class="user-name">
					<a href="${pageContext.request.contextPath}/loginout">退出</a>
					<a href="<s:url action="index.action" namespace="/userAdmin"></s:url>" class="name"><sec:authentication property="name"/></a>
				</div>
				<div class="user-img">
					<a href="<s:url action="accountIndex.action" namespace="/userAdmin"></s:url>" target="_blank">
					<img id="avatar" src="${pageContext.request.contextPath}<s:property value="loginUser.userImg"/>" /></a>
				</div>
			</div>
		</div>
	</div>
</div>
<!--导航-->
<div class="realNav">
    <ul class="clearfix">
	<li id="nav_main"><a href="<s:url action="index.action" namespace="/userAdmin"></s:url>">我的运策网</a></li>
	<li id="nav_account"><a href="<s:url action="accountIndex.action" namespace="/userAdmin"></s:url>">账户设置</a></li>
	<li id="nav_message"><a href="<s:url action="messageIndex.action" namespace="/userAdmin"></s:url>">消息管理</a></li>
	<sec:authorize access="hasRole('ROLE_DRIVER')">
	<li class="orange"><a href="${pageContext.request.contextPath}/cargo/preSearchGoods.action"  target="_self">搜索货源</a></li>
    <li class="orange"><a href="${pageContext.request.contextPath}/car/prePublishCar.action"  target="_self">发布车源</a></li>
    </sec:authorize>
    <sec:authorize access="hasRole('ROLE_USER')">
    <li class="orange"><a href="${pageContext.request.contextPath}/cargo/preAddCargo.action"  target="_self">发布货源</a></li>
    </sec:authorize>
    </ul>
</div>
<!--导航-->
<script type="text/javascript">
var nav_id = "${param.nav}";
$("#" + nav_id).addClass("select");
</script>
</div>
  
